<template>
  <div id="app">
    <!-- <img alt="Vue logo" src="./assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/> -->
    <Header></Header>

    <!-- 路由组件出口的地方 -->
    <router-view></router-view>

    <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
// import HelloWorld from './components/HelloWorld.vue'
import Header from './components/Header/index.vue';
import Footer from './components/Footer/index.vue';

export default {
  name: 'App',
  components: {
    Header,
    Footer
  },
  mounted(){
    // 派生一个action||获取商品分类的三级列表的数据
    this.$store.dispatch("categoryList");
    // 获取用户信息在首页显示
    this.$store.dispatch("getUserInfo");
  }
}
</script>

<style>
body{
overflow: hidden;
padding-right: 0 !important;
}
/* #app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
} */
</style>
